﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@model MyAspNetCoreTodo.Dtos.TodoItemDto

<h2>创建新的待办事项</h2>

<form asp-action="Create">
    <div class="form-group">
        <label asp-for="Title"></label>
        <input asp-for="Title" class="form-control" />
        <span asp-validation-for="Title" class="text-danger"></span>
    </div>
    <div class="form-group">
        <label asp-for="DueAt"></label>
        <input asp-for="DueAt" class="form-control" type="datetime-local" />
        <span asp-validation-for="DueAt" class="text-danger"></span>
    </div>
    <button type="submit" class="btn btn-primary">创建</button>
</form>
